package com.allwees.bs.module.lms.vo;

import lombok.Data;

@Data
public class MileLocusVo {

    private String latestSite;
    private String latestStatus;
    private String latestStatusTime;
    private String locusDetailed;
    private String locusType;

    private String substatus;
    private String StatusDescription;

    public String getLatestStatus(){
        if("200".equals(this.latestStatus)) {
            this.latestStatus = "Received";
        }
        if("400".equals(this.latestStatus)) {
            this.latestStatus = "Shipping";
        }

        if("500".equals(this.latestStatus)) {
            this.latestStatus = "Arrived";
        }
        if("600".equals(this.latestStatus)) {
            this.latestStatus = "Dispatch";
        } if("700".equals(this.latestStatus)) {
            this.latestStatus = "Return";
        } if("200".equals(this.latestStatus)) {
            this.latestStatus = "Received";
        } if("200".equals(this.latestStatus)) {
            this.latestStatus = "Received";
        }
        if("200".equals(this.latestStatus)) {
            this.latestStatus = "Received";
        }
        if("delivery".equals(this.latestStatus)) {
            this.latestStatus = "Signed";

        }
        StatusDescription = locusDetailed;
        substatus = latestStatus;
        return this.latestStatus;
    }
}
